package io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class WriteStringDemo
{
    public static void main(String[] args) throws IOException
    {
        FileOutputStream fos = new FileOutputStream("d1.txt");
        String s = "怎么大风越狠\n" +
                "我心越荡\n" +
                "幻如一丝尘土\n" +
                "随风自由的在狂舞\n" +
                "我要握紧手中坚定\n" +
                "却又飘散的勇气\n" +
                "我会变成巨人\n" +
                "踏着力气 踩着梦\n" +
                "怎么大风越狠\n" +
                "我心越荡\n" +
                "又如一丝消沙\n" +
                "随风轻飘的在狂舞\n" +
                "我要深埋心头上秉持\n" +
                "却又重小的勇气\n" +
                "一直往大风吹的方向走过去\n" +
                "吹啊吹啊 我的骄傲放纵\n" +
                "吹啊吹不毁我纯净花园\n" +
                "任风吹 任它乱\n" +
                "毁不灭是我 尽头的展望\n" +
                "吹啊吹啊 我赤脚不害怕\n" +
                "吹啊吹啊 无所谓 扰乱我\n" +
                "你看我在勇敢地微笑\n" +
                "你看我在勇敢地去挥手啊\n" +
                "是你吗 会给我一扇心房\n" +
                "让我勇敢前行\n" +
                "是你呀 会给我一扇灯窗\n" +
                "让我让我无所畏惧\n" +
                "吹啊吹啊 我的骄傲放纵\n" +
                "吹啊吹不毁我纯净花园\n" +
                "任风吹 任它乱\n" +
                "毁不灭是我 尽头的展望\n" +
                "吹啊吹啊 我赤脚不害怕\n" +
                "吹啊吹啊 无所谓 扰乱我\n" +
                "你看我在勇敢地微笑\n" +
                "你看我在勇敢地去挥手啊\n" +
                "怎么大风越狠 我心越荡\n" +
                "我会变成巨人\n" +
                "踏着力气 踩着梦\n";
        fos.write(s.getBytes(StandardCharsets.UTF_8));
        System.out.println("write finished");
        fos.close();
    }
}
